<?=view("home.header")?>
<?=view("home.nav")?>
<div class="content-wrapper">
    <div class="container">
        <div class="row pad-botm">
            <div class="col-md-12">
                <h4 class="header-line">新闻公告</h4>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <table class="table table-striped table-bordered table-hover dataTable no-footer" id="dataTables-example" aria-describedby="dataTables-example_info">
                    <thead>
                        <tr role="row">
                            <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column ascending" style="width: 189px;">ID号</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 291px;">标题</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 264px;">类别</th>
                            <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Engine version: activate to sort column ascending" style="width: 160px;">公告日期</th>
                        </tr>
                    <tbody>
                        <?php 
                            if ($news && count($news) > 0):
                                foreach ($news as $new):
                        ?>
                        <tr class="gradeA odd">
                            <td class="sorting_1"><?=$new->MNID?></td>
                            <td class=" "><a href="<?=url("index/newdetail")?>/<?=$new->MNID?>"><?=$new->Mn_Title?></a></td>
                            <td class=" "><?=$new->Mn_Type?></td>
                            <td class="center "><?=$new->Mn_CreateTime?></td>
                        </tr>
                        <?php
                                endforeach;
                            endif;
                        ?>
                    </tbody>
                </table>
                <?=$news->render()?>
            </div>
        </div>
    </div>
</div>
<?=view("home.footer")?>
